package edu.whut.exception.handleException;
/*
Throwable的常用方法
    1.e.printStackTrace()  展示完整的异常错误信息
    2.e.getMessage() 获取异常原因
 */
public class ThrowableMethod {
    public static void main(String[] args) {
        System.out.println("start");
        try {
            System.out.println(10/0);
        } catch (Exception e) {
            String message = e.getMessage();
            System.out.println(message);
        }
        System.out.println("end");
    }
}
